import './router_handler.dart';
import 'package:fluro/fluro.dart';
import 'package:flutter/material.dart';

class Routers {
  static String root = '/';
  static String login = '/login';
  static void configRoute(FluroRouter router) {
    router.notFoundHandler = Handler(handlerFunc: (context, params) {
      return const Center(
        child: Text('404'),
      );
    });
    // 登录页
    router.define(login, handler: toLogin);
  }
}
